#ifndef         SHEETSPRITE_CONTROL_2018
#define         SHEETSPRITE_CONTROL_2018

#include    "../concept/controller.h"
#include    "../sprite/sheetsprite.h"

class SheetSpriteControl :
public Controller
{
public:
    SheetSpriteControl(){}
    virtual ~SheetSpriteControl(){}

private:
    SheetSprite* m_sprite;

private:
    void update(TimeSeconds time);
    void render();

public:
    enum COMMAND{
    KEYDOWN_A,KEYUP_A,
    KEYDOWN_W,KEYUP_W,
    KEYDOWN_S,KEYUP_S,
    KEYDOWN_D,KEYUP_D,
    KEYDOWN_J,KEYUP_J,
    KEYDOWN_SPACE,KEYUP_SPACE,
    RENDER,UPDATE};

    virtual void quest(int uid,void* data = 0)override;
    void setSprite(SheetSprite* sprite){m_sprite = sprite;}
};



#endif // SHEETSPRITE_CONTROL_2018
